﻿
Partial Class Default2
    Inherits System.Web.UI.Page

    Dim ocnTrabajo As New Negocio.Trabajo

    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
        Try
            ocnTrabajo.RegistrarTF(Me.TBexpediente.Text, Me.TBtrabajo.Text, Me.TBalumno.Text, Me.TBprofguia.Text, Me.TBprofasesor.Text, CDate(Me.TBfecha.Text), CDate(Me.TBexamen.Text), Me.TBplan.Text)
        Catch ex As Exception
            Session.Add("Error", ex)
            Response.Redirect("ManejarErrores.aspx")
        End Try
    End Sub
End Class
